package com.qf.ssm.mapper;

import com.qf.ssm.pojo.Categories;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoriesMapper {

    void addCategories(Categories categories);

    List<Categories> findAllCategories(@Param("categoryname") String categoryname, @Param("status") int status);

    int deleteCategoriesByIds(@Param("ids") List<Long> ids);

    int updateCategories(Categories categories);

    @Select("SELECT * FROM categories")
    List<Categories> findAll();
}
